package com.mooc.mymooc.utils.common;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormater {
    public static String doFormat(Date date,String pattern){
        SimpleDateFormat sm = new SimpleDateFormat(pattern);
        String formater = sm.format(date);
        return formater;
    }
}
